﻿using System.Collections.Generic;

namespace JinYuan.MES.Models
{
    /// <summary>
    /// 设备状态上传接口参数类
    /// </summary>
    public class EqpStatusParam
    {
        /// <summary>
        /// 工厂代码
        /// </summary>
        public string siteCode { get; set; }
        /// <summary>
        ///  产线编号
        /// </summary>
        public string lineCode { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string equipNum { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string materialCode { get; set; }
        /// <summary>
        /// 员工账号
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 库位ID
        /// </summary>
        public string seatId { get; set; }
        /// <summary>
        /// 采集时间
        /// </summary>
        public string recordDate { get; set; }
        /// <summary>
        ///  设备状态 。Run：（正常运行）、Alert：（故障调试）、Idle：（闲置待机）、Maintain（停止运行）
        /// </summary>
        public string statusCode { get; set; }
        /// <summary>
        /// 状态变更时间
        /// </summary>
        public string uploadTime { get; set; }
        /// <summary>
        /// 唯一标识符号
        /// </summary>
        public string guid { get; set; }
        /// <summary>
        /// 故障代码数组
        /// </summary>
        public List<FaultCodeList> faultCodeList { get; set; }
    }

    public class FaultCodeList
    {
        /// <summary>
        /// 故障代码
        /// </summary>
        public string faultCode { get; set; }
    }
}
